<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="/template/principal.xhtml">
        <ui:define name="conteudo">
            <h:form>
                <p:panel header="Cadastro de Sprint">
                    <p:messages globalOnly="true"/>
                    <p:tabView >
                        <p:tab title="Dados do Sprint" >
                            <h:panelGrid columns="2">
                                <h:outputText value="Nome:"/>
                                <h:outputText value="#{sprint.novosprint.nome}" />
                                <h:outputText value="Data de Inicio:"/>
                                <h:outputText value="#{sprint.novosprint.dataIn}" />
                                <h:outputText value="Data de Fim:"/>
                                <h:outputText value="#{sprint.novosprint.dataFim}" />
                                <h:outputText id="resp" value="Projeto:"/>
                                <h:outputText value="#{sprint.novosprint.fkProj.nome}"/>
                            </h:panelGrid>

                        </p:tab>
                        <p:tab title="Estórias do Sprint">
                            <p:dataTable value="#{sprint.novosprint.estoriaBeanCollection}" var="e" rows="10" dynamic="false" paginator="true"
                                         selectionMode="multiple" selection="#{estsprint.estorias}" emptyMessage="Nenhuma estória cadastrada">
                                <p:column headerText="Nome" style="width: 30%" >
                                    <h:outputText value="#{e.nome}"/>
                                </p:column>
                                <p:column headerText="Projeto" style="width: 30%">
                                    <h:outputText value="#{e.fkProj.nome}"/>
                                </p:column>
                                <p:column headerText="Situação" style="width: 30%">
                                    <h:outputText value="#{e.fkSituacao.descricao}"/>
                                </p:column>
                            </p:dataTable>
                            <br/>
                            
                        </p:tab>
                    </p:tabView>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
